package com.chixing.service.impl;

import com.chixing.entity.OrderCancelRules;
import com.chixing.mapper.OrderCancelRulesMapper;
import com.chixing.service.IOrderCancelRulesService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.chixing.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author smith
 * @since 2025-09-30
 */
@Service
public class OrderCancelRulesServiceImpl  implements IOrderCancelRulesService {
    @Autowired
    private OrderCancelRulesMapper orderCancelRulesMapper;

    @Override
    public Result getAll() {
        List<OrderCancelRules> orderCancelRules = orderCancelRulesMapper.selectList(null);
        if (orderCancelRules != null || orderCancelRules.size() > 0)
            return Result.getSuccess(orderCancelRules);
        return Result.getFail(null);
    }
}

